package com.kanas.webak.config.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.kanas.webak.config.domain.DictType;
import com.kanas.webak.config.domain.DictValue;

public interface DictValueRepository extends JpaRepository<DictValue,String> {
	
	@Query("select max(dv.sortNumber) from DictValue dv")
	Integer findMaxSortNumber();
	List<DictValue> findByDictType(DictType dictType);
	
}
